﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/default.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Pages_Usercenter_ChangePassword" %>

<%@ Register src="../../Misc/Control/MyAccount.ascx" tagname="MyAccount" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>修改密码</title>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript"> 
<!--//--><![CDATA[//><!--
    $().ready(function() {
        // validate signup form on keyup and submit
        $("#passForm").validate({
            rules: {
                pass: {
                    required: true,
                    minlength: 6,
                    maxlength: 20
                },
                pass2: {
                    required: true,
                    equalTo: "#pass"
                }
            },
            messages: {
                pass: {
                    required: "<div class=\"Rm_four\">请输入密码！</div>",
                    minlength: "<div class=\"Rm_four\">密码长度太小！最小6个字符</div>",
                    maxlength: "<div class=\"Rm_four\">密码长度过长！最小20个字符</div>"
                },
                pass2: {
                    required: "<div class=\"Rm_four\">请输入确认密码！</div>",
                    equalTo: "<div class=\"Rm_four\">两次输入的密码不一致！</div>"
                }
            },
            errorPlacement: function(error, element) {
                element.parent("td").next("td").html("");
                error.appendTo(element.parent("td").next("td"));
            }
        });

        // check if confirm password is still valid after password changed
        $("#pass").blur(function() {
            $("#pass2").valid();
        });

    });
	        
//--><!]]>
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="main2"> 
 <div class="main_l">
  <form  id="passForm" >
<div>	<div class="liuc_l">
		<div class="l_top"></div>
		<div class="login_area">
			<%--<h3>修改密码</h3>
			  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="liuc_tab07">
			<FONT COLOR="#339900"></FONT>
            <tr>
              <td align="right" valign="middle" class="f14">设置密码：</td>
              <td align="left" valign="middle"><input id="pass" type="password" name="pass" class="liuc_input6" /></td>
              <td align="left" valign="middle"><div class="Rm_one">密码可由大小写英文字母、数字组成，长度6-20个字符。</div></td>
            </tr>
            <tr>
              <td align="right" valign="middle" class="f14">确认密码：</td>
              <td align="left" valign="middle"><input id="pass2" type="password" name="pass2" class="liuc_input6" /></td>
              <td align="left" valign="middle"><div class="Rm_one">请再次输入密码，并且要与第一遍设置的密码完全相同。</div></td>
            </tr>
            <tr>
              <td align="right" valign="middle">&nbsp;</td>
              <td align="left" valign="middle"><input type="submit" name="" value="修改" class="index_but4" /></td>
              <td align="left" valign="middle">&nbsp;</td>
            </tr>
          </table>--%>
          
		    <asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#F7F7DE" 
                BorderColor="#CCCC99" BorderStyle="Solid" BorderWidth="1px" 
                Font-Names="Verdana" Font-Size="10pt">
                <TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="#FFFFFF" />
            </asp:ChangePassword>
          
		</div>
		<div class="l_bot"></div>
	</div> 
</div></form>
 </div> 
  	<div class="main2_r">
	    <uc1:MyAccount ID="MyAccount1" runat="server" />
	</div>
	<DIV class="go-top"><A href="#uptop">↑顶部</A></DIV></div>

</asp:Content>

